import request from '@/utils/request'

// 查询仓库管理列表
export function listStore(query) {
  return request({
    url: '/wms/store/list',
    method: 'get',
    params: query
  })
}

// 查询仓库下拉框
export function listStoreXlk() {
  return request({
    url: '/wms/store/listXlk',
    method: 'get'
  })
}

// 查询出入库记录
export function listStoreLog(query) {
  return request({
    url: '/wms/store/ioLogList',
    method: 'get',
    params: query
  })
}

// 查询商品仓库列表
export function getProductStoreList(query) {
  return request({
    url: '/wms/store/productStoreList',
    method: 'get',
    params: query
  })
}

// 设置商品
export function settingProductStore(query) {
  return request({
    url: '/wms/store/settingProductStore',
    method: 'post',
    data: query
  })
}

// 查询仓库管理详细
export function getStore(id) {
  return request({
    url: '/wms/store/' + id,
    method: 'get'
  })
}

// 新增仓库管理
export function addStore(data) {
  return request({
    url: '/wms/store',
    method: 'post',
    data: data
  })
}

// 修改仓库管理
export function updateStore(data) {
  return request({
    url: '/wms/store',
    method: 'put',
    data: data
  })
}

// 删除仓库管理
export function delStore(id) {
  return request({
    url: '/wms/store/' + id,
    method: 'delete'
  })
}
